# -*- coding:utf-8 -*-
def common_assert(login_resp, status_code, sucess, code, message):
    assert status_code == login_resp.status_code
    assert sucess == login_resp.json().get("success")
    assert code == login_resp.json().get("code")
    assert message in login_resp.json().get("message")
